ObserverBase class¶
Defined in
Namespace: System.Reactive
Assembly: System.Reactive.dll
Full name: System.Reactive.ObserverBase<T>
Modifiers: public abstract
Summary¶
Abstract base class for implementations of the IObserver interface.
Applies to
netstandard2.0
Class hierarchy
classDiagram
class ObserverBase~T~
class IObserver~T~ {
<>
}
IObserver~T~ <|.. ObserverBase~T~
class IDisposable {
<>
}
IDisposable <|.. ObserverBase~T~
Implements: IObserver
Remarks¶
This base class enforces the grammar of observers where OnError and OnCompleted are terminal messages.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Creates a new observer in a non-stopped state. |
Methods¶
| Name | Summary |
|---|---|
| OnNext | Notifies the observer of a new element in the sequence. |
| OnNextCore | Implement this method to react to the receival of a new element in the sequence. |
| OnError | Notifies the observer that an exception has occurred. |
| OnErrorCore | Implement this method to react to the occurrence of an exception. |
| OnCompleted | Notifies the observer of the end of the sequence. |
| OnCompletedCore | Implement this method to react to the end of the sequence. |
| Dispose | Disposes the observer, causing it to transition to the stopped state. |